package com.sc.nft.entity.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 刘国航
 * @desc
 * @since 2024/11/27 10:35
 */
@Data
public class DaoPledgePeriodsCreateRequest implements Serializable {

    private static final long serialVersionUID = -5355725895645686801L;

    @ApiModelProperty("期数")
    @NotNull(message = "期数不能为空")
    @Min(value = 1, message = "期数必须大于0")
    private Integer periods;

    @ApiModelProperty("共创数量")
    @NotNull(message = "共创数量不能为空")
    @Min(value = 1, message = "共创数量必须大于0")
    private Integer pledgeTotal;

    @ApiModelProperty("结算时长")
    @NotNull(message = "结算时长不能为空")
    @Min(value = 1, message = "结算时长必须大于0")
    private Integer settleDay;

    @ApiModelProperty("是否新增")
    private Boolean isNewAdd = Boolean.FALSE;
}
